package com.jinsilu.freight.http.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestHost;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;
import com.jinsilu.freight.other.AppConfig;
import com.jinsilu.freight.other.MTLConstants;

/**
 * 获取fir.im上的App信息
 *
 * @author yangyang
 * @time 2021/03/11 14:22
 */
public class GetAppInfoApi implements IRequestHost, IRequestApi, IRequestType {

    @Override
    public String getApi() {
        return AppConfig.getAppId() + MTLConstants.FIR_IM_TOKEN;
    }

    @Override
    public String getHost() {
        return "http://api.bq04.com/apps/latest/";
    }

    @Override
    public BodyType getType() {
        return BodyType.FORM;
    }
}
